<template>
  <div class="ASK">
      <div class="TITLE">{{title}}</div>
      <div class="PHOTO">
          <img  v-for="item in img" :key="item.id" :src="item.src">
      </div>
      <!-- tags and prices -->
      <div>
        <div class="TAG" v-for="item in tag" :key="item.id">
            <span>{{item.name}}</span>
        </div>
        <div class="PRICE">
            <span>{{priceTitle}}<span>{{price}}<span>{{value}}</span></span></span>
        </div>
      </div>
      <div class="INTRODUCTION">
          <div class="introduction-university">
            <i class="el-icon-location-information"></i>
            {{university}}
          </div>
          <div class="introduction-participation">
            {{paticipation}}
          </div>
          <button type="button" class="introduction-other">
            {{other}}
          </button>
      </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      title: '店员说这条丑裤是当季的潮款，但我不知道怎么搭配，求指教?',
      img: [
        {
          id: 1,
          src: require('@/assets/images/Main/Ask/pic1.jpg')
        },
        {
          id: 2,
          src: require('@/assets/images/Main/Ask/pic2.jpg')
        },
        {
          id: 3,
          src: require('@/assets/images/Main/Ask/pic3.jpg')
        }
      ],
      tag: [
        {
          id: 1,
          name: '初冬活动🔥'
        },
        {
          id: 2,
          name: '新手问'
        }
      ],
      priceTitle: '答题悬赏:',
      price: 1000,
      value: '鸵鸵币',
      university: '中国矿业大学',
      paticipation: '25参与，其中优质回答3条',
      other: '...'
    }
  }
}
</script>

<style lang='scss'>
.ASK {
  background: white;
  padding: 10px 10px 3px;
  // margin-top: 5px;
  .TITLE {
      font-family: 微软雅黑;
      font-weight: bold;
      font-size: 15px;
      color: black;
      letter-spacing: 2px;
      display: block;
  }
  .PHOTO {
      padding-top: 35px;
      text-align: center;
      // display: table;
      img {
          // display: table-cell;
          float: center;
          padding: 1%;
          height: auto;
          width: 30%;
      }
  }
  .TAG {
      float: left;
      margin-left: 5px;
      border-radius: 20px;
      background-color: rgb(252, 202, 182);
      padding: 2px 7px;
      font-family: 微软雅黑;
      font-weight: bold;
      font-size: 12px;
      letter-spacing: 1.5PX;
      color: rgb(255, 250, 244);
  }
  .PRICE {
      font-family: 微软雅黑;
      font-weight: bold;
      // padding-top: -5px;
      float: right;
      span {
          color: gray;
          font-size: 13px;
          span {
              font-size: 16px;
              color: #E9BD7A;
          }
      }
  }
  .INTRODUCTION {
      font-family: 微软雅黑;
      font-weight: bold;
      display: table;
      width: 100%;
      padding-top: 2%;
      padding-bottom: 5px;
      .introduction-university {
          display: table-cell;
          font-size: 11px;
          color: rgb(155, 155, 155);
      }
      .introduction-participation {
          display: table-cell;
          font-size: 13px;
          color: gray;
      }
      .introduction-other {
          color: black;
          padding-top: 0;
          border: none;
          background-color: transparent;
          outline: none;
          width: 5%;
      }
  }
}
</style>
